package com.unisound.tracelog.server.ui.controller;

import com.unisound.tracelog.common.model.dto.ResultDTO;
import com.unisound.tracelog.server.ui.model.request.TraceLogTagSearchRequest;
import com.unisound.tracelog.server.ui.model.response.TraceLogTagResponse;
import com.unisound.tracelog.server.ui.service.UITraceLogTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ui/tracelog-tag")
public class UITracelogTagController {

    @Autowired
    private UITraceLogTagService uiTraceLogTagService;

    @RequestMapping("/search")
    public ResultDTO<TraceLogTagResponse> search(@RequestBody TraceLogTagSearchRequest request) {
        return uiTraceLogTagService.search(request);
    }

}
